package com.heima.exam.p7;

public class SingleTon2 {
    private static class Instance {
        public static SingleTon2 INSTANCE = new SingleTon2();
    }

    private SingleTon2() {
    }

    public static SingleTon2 getInstance() {
        return Instance.INSTANCE;
    }
}